package com.ruoyi.common.constant;

/**
 * 缓存Key
 */
public class CacheKeyConstants {
    public final static String TOKEN_TPL = "token_%s";//token模板
    public final static String CODE_TPL = "code_%s_%s";//短信验证码模板：code_业务类型_token
    public final static String SMS_CODE_TPL = "sms_code_%s_%s";//短信验证码模板：vcode_手机号码_业务类型
    public final static String WITHDRAW_ID_TPL = "withdraw_id_%s";//提现订单id自增长序号模板：withdraw_id_日期
    public final static String RECHARGE_ID_TPL = "recharge_id_%s";//充值订单id自增长序号模板：withdraw_id_日期
    public final static String TRADE_LIST = "trade:list";
    public final static String MARKET_DEPTH_BUY = "marketdepth:buy:%s";
    public final static String MARKET_DEPTH_SELL = "marketdepth:sell:%s";
    public final static String DEALLIST = "deallist:%s";
    public final static String LATESTPRICE = "latestprice";
    public final static String EXCHANGE_RATE = "exchange_rate"; //兑换汇率
    public static final String HUOBI_TRADESTATISTICS_24H = "huobi:tradestatistics_24h";
    public static final String HUOBI_TRADE_DETAIL = "huobi:trade_detail";
    public static final String SYS_CONFIG_MAP = "sysconfig:map";
    public static final String VC_RATIO = "vc_ratio";
    public static final String PRODUCT = "product:%s";
    public static final String BANNER = "banner:%s";
    public static final String RECHARGE_AMOUNT = "recharge_amount";
    public static final String BUY_PRODUCT = "buyproduct";
    public static final String RELEASE_BASE = "release_base";
    public final static String ADMIN_SMS_CODE_TPL = "admin_sms_code_%s_%s";//短信验证码模板：vcode_手机号码_业务类型
    public final static String CACHE_TRADE_LIST = "cache_trade:list";
    public static String getTempletString(String templet, String... values) {
        return String.format(templet, values);
    }
}
